package com.amos.muexamclient.sys.service.dto;


import com.alibaba.fastjson.JSONObject;
import com.amos.core.PageDTO;
import com.amos.muexamclient.sys.entity.SysRoleMenuEntity;
import com.amos.muexamcore.core.MuEntity;
import com.amos.muexamcore.core.MuField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.service.dto
 * @ClassName SysRoleMenuDTO
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020-03-24 14:36:11
 * @Version 1.0
 **/
@MuEntity(table = "sys_role_menu", entity = SysRoleMenuEntity.class)
@Data
public class SysRoleMenuDTO extends PageDTO implements Serializable {

    private static final long serialVersionUID = 4993981274559250720L;
    @MuField(remark = "角色ID", type = "varchar", length = 32, column = "role_id")
    private String roleId;

    @MuField(remark = "菜单ID", type = "varchar", length = 32, column = "menu_id")
    private String menuId;

    @MuField(remark = "修改时间", type = "datetime", column = "update_time")
    private Date updateTime;

    @MuField(remark = "删除标志（0代表存在 1代表删除）", type = "tinyint", column = "del_flag")
    private Boolean delFlag;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
